package com.nami.store.biz.groupmembs.convert;

import com.nami.store.api.request.grpmember.GrpMemberAddReq;
import com.nami.store.api.response.groupmember.GroupMemberDTO;
import com.nami.store.domain.GroupMemberDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群成员convert
 *
 * @author lbc@test.com
 * @since 1.0.0 2022-11-29
 */
@Mapper
public interface GroupMemberConvert {

    GroupMemberConvert INSTANCE = Mappers.getMapper(GroupMemberConvert.class);

    /**
     * entity ==> vo
     *
     * @param member
     * @return
     */
    GroupMemberDTO convert(GroupMemberDO member);

    /**
     * list convert
     *
     * @param members
     * @return
     */
    List<GroupMemberDTO> convertList(List<GroupMemberDO> members);


    GroupMemberDO convert2(GrpMemberAddReq req);


    List<GroupMemberDO> convertList2(List<GrpMemberAddReq> reqs);


}






















